package test230331;

import java.util.Scanner;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/3/31 20:27
 * 给定N个正整数，请统计奇数和偶数各有多少个？
 */
public class Main06 {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] num = new int[n];
        int oddNumber = 0; // 奇数个数
        int evenNumber = 0; // 偶数个数
        for (int i = 0; i < n; i++) {
            num[i] = scan.nextInt();
            if ((num[i] & 1) == 0) { // 偶数
                evenNumber++;
            }else {
                oddNumber++;
            }
        }
        System.out.println(oddNumber + " " + evenNumber);
        scan.close();
    }
}
